package com.hongfeng.support.item;

import com.hongfeng.support.item.tag.FieldOperator;
import com.hongfeng.support.item.tag.LogicOperator;

/**
 * 查询条件bean
 * 
 * @author asus
 * 
 */
public class ParmItem {

	private String fieldName;// 属性名
	private Object fieldValue;// 属性值
	private FieldOperator fieldOperator;// 属性操作类型
	private LogicOperator logicOperator;// 逻辑操作类型

	public ParmItem(String fieldName, Object fieldValue,
			FieldOperator fieldOperator) {
		this(fieldName, fieldValue, fieldOperator, null);
	}

	public ParmItem(String fieldName, Object fieldValue,
			FieldOperator fieldOperator, LogicOperator logicOperator) {
		super();
		this.fieldName = fieldName;
		this.fieldValue = fieldValue;
		this.fieldOperator = fieldOperator;
		this.logicOperator = logicOperator;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Object getFieldValue() {
		return fieldValue;
	}

	public void setFieldValue(Object fieldValue) {
		this.fieldValue = fieldValue;
	}

	public FieldOperator getFieldOperator() {
		return fieldOperator;
	}

	public void setFieldOperator(FieldOperator fieldOperator) {
		this.fieldOperator = fieldOperator;
	}

	public LogicOperator getLogicOperator() {
		return logicOperator;
	}

	public void setLogicOperator(LogicOperator logicOperator) {
		this.logicOperator = logicOperator;
	}

}
